/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

public class LiteralStringExpr extends Expr {

	public LiteralStringExpr(String literalString) {
		this.literalString = literalString;
	}

	public void genC(PW pw, boolean putParenthesis) {
		pw.print(literalString);
	}

	public Type getType() {
		return Type.stringType;
	}

	private String literalString;

	@Override
	public void genKrakatoa(PW pw, boolean putParenthesis) {
		// TODO Auto-generated method stub
		pw.print("\"" + literalString + "\"");
	}
}
